package com.bdsy.business.controller;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.bdsy.business.model.ShopTrail;
import com.bdsy.business.service.ShopTrailService;
import com.bdsy.common.annotation.Json;
import com.bdsy.system.annotation.SysLog;

/**
 * 溯源轨迹
 * @author MING
 * @date 2018年3月22日 上午11:02:22
 */
@Controller
@RequestMapping(value = {"${web.adminPath}", "${web.appPath}"})
public class TrailManagerController {

	@Autowired
	ShopTrailService shopTrailService;
	
	@RequestMapping(value = "trail")
	public String trail() {
		return "admin/business/trail";
	}
	
	@SysLog("轨迹信息 ")
	@Json
	@RequestMapping(value = "shopTrailListById")
	public Object shopTrailListById(int shopId) {
		List<ShopTrail> shopTrailList = shopTrailService.selectShopTrailById(shopId);
		return shopTrailList;
	}
}
